local biz_name = "_adc.gif"

ConfigRedisConnectors[biz_name]={
    host = "127.0.0.1",
    port = 6379,
    unixpath = "/etc/redis/unixpath/redis.sock",
    db = NIL,
    user = NIL,
    passwd = NIL,
    queue = "adc"
}


function _adc_gif()
    return coroutine.create(function ()
        local t = {}
        local n = 10000
        while true do
            luredis.clear_cmd_buffer()
            local before_luredis = os.time();
            for i=1,n do luredis.append_cmd_buffer(i,"|111111111111") end
            local after_luredis = os.time();
            for i=1,n do t[#t+1] = i end
            s = table.concat(t,"|1111111111111")
            local after_table = os.time()
            print("Luredis Buffer: ",after_luredis - before_luredis)
            print("Table Concat: ", after_table - after_luredis)
            coroutine.yield()
        end
    end)
end
f[biz_name] = _adc_gif()
